package javabase.schoolwork.day5_31;

/**
 * @author fance
 * @date 2018/5/31 21:25
 */
public class TestException {
    public static void main(String[] args) throws Exception {
       /* 1. try {
            int i = 1 / 0;
        } catch (Exception e) {
            System.out.println(e.getMessage());
        } finally {
            System.out.println("finally");
        }*/

      /* 2. StringBuilder stringBuilder = null;
      try {
          stringBuilder.append("1");
      } catch (Exception e) {}*/

   /*   Person person = new Person();
      //person.setAge(-1);
      person.setTelephone("123");*/

   // Bank bank = Bank.getBanking();
  // bank.setNum("123");
   //bank.setPassword("123");

      /*  Account account = new Account(100);
        account.withdaw(200);*/
     /* CheckingAccount checkingAccount = new CheckingAccount(10,10);
        //checkingAccount.withdaw(1);
        //checkingAccount.withdaw(15);
        checkingAccount.withdaw(30);*/
    }
}
